/*
 * @Description:js 对象
 * @Author: admin
 * @Date: 2021-06-07 15:31:04
 * @LastEditors: admin
 * @LastEditTime: 2021-06-07 16:02:20
 */
var person = {
  name: "larry",
  age: 22,
  gender: "男",
  sayHello () {
    console.log(this.name + ":hello");
  },
  sayName () {
    console.log("my name is " + this.name);
  },
  likes: ['⚽️', '🏀', '🎾'],
}
// console.log(person.name);
// console.log(person['name']);
// console.log(person);
// delete person.age
// console.log(person);
// console.log("hello");
// console.log(person.hasOwnProperty("name")); // true
// console.log(person.hasOwnProperty("time")); // false

// var s = person.toString();
// console.log(s);
// var s1 = JSON.stringify(person)
// console.log(s1);
person.sayHello();
person.sayName();
console.log(person.likes);